/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package LOF;

//import com.sun.org.apache.bcel.internal.generic.AALOAD;
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import testings.LOF;
import weka.core.Instances;

/**
 *
 * @author Agnitto
 */
public class TestLOF {
    
    public static void main(String[] args) throws IOException{
        BufferedReader src = new BufferedReader(new FileReader("iris.arff"));
        Instances inst = new Instances(src);

        LetUsBegin x = new LetUsBegin(inst, 17, 25);
        int[] outliers = x.getOutliers();
        for(int i = 0; i < outliers.length; i ++){
            System.out.println(outliers[i] + " ");
        }
    }
}
















/*
 * xy dataset data
 * 
5.1,3.5 <- index 0
4.9,3.0
4.7,3.2
4.6,3.1
5.0,3.6
5.4,3.9
4.6,3.4
5.0,3.4
4.4,2.9
4.9,3.1
5.4,3.7
4.8,3.4
4.8,3.0
4.3,3.0
5.8,4.0
5.7,4.4
5.4,3.9
5.1,3.5
5.7,3.8
5.1,3.8
5.4,3.4
5.1,3.7
4.6,3.6
5.1,3.3
4.8,3.4
7.0,3.2
6.4,3.2
6.9,3.1
5.5,2.3
6.5,2.8
5.7,2.8
6.3,3.3
4.9,2.4
6.6,2.9
5.2,2.7
5.0,2.0
5.9,3.0
6.0,2.2
6.1,2.9
5.6,2.9
6.7,3.1
7.7,3.0
6.4,3.1
6.0,3.0
6.9,3.1
6.7,3.1
6.9,3.1
5.8,2.7
6.8,3.2
6.7,3.3
6.7,3.0
6.3,2.5
6.5,3.0
6.2,3.4
5.9,3.0
 * 
 */

